package org.my.business.mapper;


import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import org.my.business.domain.PcDevice;
import org.my.business.domain.bo.DeviceBo;
import org.my.business.domain.vo.DeviceVo;
import org.my.common.mybatis.core.mapper.BaseMapperPlus;
import org.my.system.domain.SysUser;

import java.util.HashMap;
import java.util.List;

public interface PcDeviceMapper extends BaseMapperPlus<PcDevice, DeviceVo> {

    /**
     * 查询设备列表
     * @return
     */
    List<DeviceVo> selectPageUserList(DeviceBo deviceBo);

    /**
     * 机台运行状态数量统计
     * @param device
     * @return
     */
    List<DeviceVo> selectStaNum(DeviceBo device);

    /**
     * 员工、客户搜索下拉框内容
     * @param user
     */
    @InterceptorIgnore(tenantLine = "true", dataPermission = "false")
    List<HashMap<String,Object>> selectQueryUsers(SysUser user);

    /**
     * 单个设备详情
     * @param devSn
     * @return
     */
    DeviceVo selectOneDev(Integer devSn);
}
